[MailKitSender] Per client ServerCertificateValidationCallback#338
[MailKitSender] Per client ServerCertificateValidationCallback#338Whivel wants to merge 3 commits intolukencode:masterfrom
Conversation
|
duplicate #333 |
|
in #256 and in #333 they both forgot to add the same features to the SendAsync method. Both prs pass and use CheckCertificateRevocation which is not in this pr. in #333 the callback method is not passed. I think #256 and #333 cannot be merged because they are incomplete because they miss the same change in the async method and. |
So, @Whivel - do you want to add that |
[FluentEmail.MailKit]
I added a new option in SmtpClientOptions to give the opportunity to specify a ServerCertificateValidationCallback per client.
If specified the callback is assigned to the MailKit SmtpClient and it will be used instead of the default one. In that way it is possible to avoid the use of the global variable "ServicePointManager.ServerCertificateValidationCallback"